package demo;
public class Cat extends Animal { //继承动物父类
    public String name="大胖";
    public void mew(){  //子类增加的新成员
        System.out.println("喵喵喵！");
    }

    public static void main(String[] args) {
        Cat cat =new Cat();
        cat.age=2;
        cat.gender="公";
        System.out.println(cat.name);
        System.out.println(cat.age);
        System.out.println(cat.gender);
        cat.eat();
        cat.move();
        cat.mew();
    }


}
